package com.cqrt.entity;

import com.cqrt.constant.RTTableTypeConstant;
import com.ty.basic.constant.TableTypeConstrant;
import com.ty.basic.entity.CTyEntityBaseDO;
import com.ty.basic.util.TyOtype;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigInteger;
import java.time.LocalDateTime;


@Data
@Entity
@TyOtype(
        displayName = RTTableTypeConstant.TYPE_TEMPLATE_DOC_LINK
)
@Table(name = "RT_PRJ_TEMPLATE_DOC_LINK")
public class RTTemplateLinkDocDO extends CTyEntityBaseDO {

    @Id
    @Column(name = "OID", nullable = false)
    private BigInteger oid;

    @Column(name = "PROJECT_ID", length = 255)
    private BigInteger projectId;  //模板计划Id

    @TyOtype(
            name = RTTableTypeConstant.TYPE_TEMPLATE_DOC_LINK
    )
    @Column(name = "OTYPE", length = 255)
    private String OType=RTTableTypeConstant.TYPE_TEMPLATE_DOC_LINK;

    @Column(name = "DOC_NUMBER", nullable = false, length = 255)
    private String objectNumber;

    @Column(name = "DISPLAY_NAME", nullable = false, length = 255)
    private String identifierDisplayName;

    @Column(name = "DISPLAY_VERSION", length = 255, nullable = false)
    private String displayVersion;

    @Column(name = "LATEST_VERSIONID", length = 255, nullable = false)
    private BigInteger latestVersionID;

    @Column(name = "DOC_OTYPE", length = 255)
    private String docOType;



}
